# coding=utf-8
import time
class Solution:
    def addTwoNumbers(self, l1: list, l2: list) -> list:
        l1.reverse()
        l2.reverse()
        a = ''
        b = ''
        for i in l1:
            a += str(i)
        for i in l2:
            b += str(i)
        a = int(a)
        b = int(b)
        num = a+b
        num = str(num)
        c =[]
        for i in num:
            c.append(int(i))
        c.reverse()
        return c


st = time.time()
cd = Solution()
print(cd.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
time.sleep(1)
print(time.time()-st)

